<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>后台登录页面</title>
    <!-- zui -->
    <link href="dist/css/zui.min.css" rel="stylesheet">
</head>

<body>
    <div class="panel" style="margin-bottom: 10px;">
        <div class="panel-heading">
            搜索条件
        </div>
        <div class="panel-body">
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">后缀名</span>
                    <input type="text" class="form-control" placeholder="请输入后缀名" id="tailName">
                </div>
            </div>
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">积分区间</span>
                    <input type="text" class="form-control" placeholder="开始积分" id="startScore">
                </div>
            </div>
            <div class="col-md-4 with-padding">
                <div class="input-group">
                    <span class="input-group-addon">积分区间</span>
                    <input type="text" class="form-control" placeholder="结束积分" id="endScore">
                </div>
            </div>
            <div class="col-md-4 with-padding">
                <button class="btn btn-block" type="button" id="searchBtn">搜索</button>
            </div>
            <div class="col-md-4 with-padding">
                <button class="btn btn-block btn-info " type="button" id="addFileTypeBtn">新增</button>
            </div>
            <div class="col-md-4 with-padding">
                <button class="btn btn-block btn-danger " type="button" id="reSetBtn">重置</button>
            </div>
        </div>
    </div>
    <div class="panel">
        <div class="panel-heading">
            文档配置
        </div>
        <div class="panel-body">
            <table class="table table-striped table-hover table-bordered">
                <thead>
                    <tr>
                        <th hidden="hidden">序号</th>
                        <th>类型名</th>
                        <th>后缀名</th>
                        <th>上传积分</th>
                        <th>创建时间</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody id="tableData">
                    <tr>
                        <td>文本文档</td>
                        <td>txt</td>
                        <td>10</td>
                        <td>2020-1-1</td>
                        <td>
                            <button class="btn btn-mini " type="button">删除</button>
                            <button class="btn btn-mini " type="button">修改</button>
                        </td>
                    </tr>
                </tbody>
            </table>
            <!-- 分页 -->
            <div class="text-center">
                <button class="btn" type="button" id="prePageBtn">上一页</button>
                <span id="pageNumber">1/3</span>
                <button class="btn" type="button" id="nextPageBtn">下一页</button>
            </div>
        </div>
    </div>
    <!-- 新增弹窗 -->
    <div class="modal fade" id="saveModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                    <h4 class="modal-title">增加后台用户</h4>
                </div>
                <div class="modal-body">
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">类型名</span>
                            <input type="text" class="form-control" id="addTypeName">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">后缀名</span>
                            <input type="text" class="form-control" id="addTailName">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">分数</span>
                            <input type="text" class="form-control" id="addFileScore">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="saveAjax();">保存</button>
                </div>
            </div>
        </div>
    </div>
    <!-- 修改弹窗 -->
    <div class="modal fade" id="updateModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">关闭</span></button>
                    <h4 class="modal-title">修改后台用户</h4>
                </div>
                <div class="modal-body">
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span hidden='hidden' id="updateFTID"></span>
                            <span class="input-group-addon">类型名</span>
                            <input type="text" class="form-control" id="updateTypeName">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">后缀名</span>
                            <input type="text" class="form-control" id="updateTailName">
                        </div>
                    </div>
                    <div class="col-md-12 with-padding">
                        <div class="input-group">
                            <span class="input-group-addon">分数</span>
                            <input type="text" class="form-control" id="updateFileScore">
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="updateAjax();">保存</button>
                </div>
            </div>
        </div>
    </div>
</body>

<!-- jQuery (ZUI中的Javascript组件依赖于jQuery) -->
<script src="dist/lib/jquery/jquery-3.4.1.min.js"></script>
<!-- ZUI Javascript组件 -->
<script src="dist/js/zui.min.js"></script>
<!-- layer弹窗JS -->
<script src="layer/layer.js"></script>
<!-- 自己的JS -->
<script src="js/common.js"></script>
<script src="js/file_mgr.js"></script>


</html>